package com.visitcqut.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: visitcqut
 * @description:
 * @author: Marlowe
 * @create: 2020-11-13 00:43
 **/
@Api(tags = "测试控制类")
@RestController
public class TestController {

    @GetMapping("/hello")
    public String test() {
        return "hello";
    }

    @ApiOperation("Hello 控制类")
    @GetMapping(value = "/hello2")
    public String hello2(@ApiParam("用户名") String username) {
        return "hello" + username;
    }
}
